import wx


class MyApp(wx.App):

    #APP启动是 OnInit将被调用
    def OnInit(self):
        frame = wx.Frame(parent=None, title='Bare')
        self.SetTopWindow(frame)
        frame.Show()
        return True


app = MyApp()

app.MainLoop()
